#include<iostream>
#include<vector>
#include<algorithm>

using namespace std;

class GreaterThan20{
    public:
    bool operator()(int val){
        return val>20;
    }
};

void test01(){
    vector<int> v;
    v.push_back(10);
    v.push_back(20);

    //查找第一个大于20的数字
    vector<int>::iterator pos = find_if(v.begin(), v.end(), GreaterThan20());
    if(pos!=v.end()){
        cout<<"找到"<<endl;
    }
}

int main(){
    return 0;
}